// 热门推荐通用接口
import type { PagesInfo } from '@/types/global'
import type { HotResult } from '@/types/hot'
import { http } from '@/utils/http'
// 设置参数类型
type QueryType = PagesInfo & { subType: string }
export const hotApi = (url: string, data?: QueryType) => {
  return http<HotResult>({
    method: 'GET',
    url,
    data,
  })
}
